<?xml version="1.0" encoding="UTF-8" ?>
<!--
-->
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">

    <ui:composition template="template.xhtml">
        <ui:define name="title"><h:outputText value="#{msgs['paginaAdmin.admin']}" /></ui:define>
        <ui:define name="body">
            <h:form>
                <div align="left"><br/><br/>
                    <h:dataTable value="#{vooBusiness.todosVoos}" var="item" styleClass="tabelaRich800"
                                 columnClasses="alignCenter, alignLeft, alignLeft, alignLeft, alignCenter" >
                        <f:facet name="header">
                            <h:panelGrid columns="2" rowClasses="rowRoxo" styleClass="tabelaRich800"
                                         columnClasses="col30Right, alignCenter" >
                                <h:graphicImage id="imageAcesso" height="25" value="../imagens/store.png" />
                                <h:outputText value="#{msgs['voosDisponiveis.voo']}"
                                              styleClass="titulosTabelas"/>
                            </h:panelGrid>
                        </f:facet>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{msgs['num.voo']}" styleClass="titulosPretos" />
                            </f:facet>
                            <h:outputText value="#{item.num}" styleClass="labels" />
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{msgs['localOrigem.voo']}" styleClass="titulosPretos" />
                            </f:facet>
                            <h:outputText value="#{item.localOrigem}" styleClass="labels" />
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{msgs['localDestino.voo']}" styleClass="titulosPretos" />
                            </f:facet>
                            <h:outputText value="#{item.localDestino}" styleClass="labels" />
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{msgs['excluirVoo.voo']}" styleClass="titulosPretos" />
                            </f:facet>
                            <h:commandLink action="#{vooBusiness.excluirVoo()}" value="#{msgs['system.excluir']}"
                                           styleClass="hiperlink"
                                           onclick="if (!confirm('#{msgs['system.confirmaExclusao']}')) return false;" />
                        </h:column>
                    </h:dataTable>
                </div>
            </h:form>
        </ui:define>
    </ui:composition>
</html>
